﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Dtos;
using Core.Domain;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity;
using Core.Messages;
using Core.Mappers;
using AutoMapper;
using AutoMapper.Mappers;
using Core.Context;
using Core.ViewModels;
using Front.Core.Dtos;

namespace DI
{
    public static class AutoMapperConfig
    {
        private static bool s_isInit = false;

        public static void CreateMappings()
        {
            if (s_isInit)
                return;
            s_isInit = true;                        

            Mapper.CreateMap<UserLoginInfo, UserLoginInfoTo>();         
            Mapper.CreateMap<UserLoginInfoTo, UserLoginInfo>();

            Mapper.AssertConfigurationIsValid();            
        }
    }
}      